local glittering_gemstones = fk.CreateSkill {
  name = "cf_glittering_gemstones_skill",
}

Fk:loadTranslationTable {
  ["cf_glittering_gemstones_skill"] = "宝石闪闪",
  ["#cf_glittering_gemstones_skill"] = "你增加一点体力上限回复一点体力并饱腹。",
}

glittering_gemstones:addEffect("cardskill", {
  prompt = "#cf_glittering_gemstones_skill",
  mod_target_filter = Util.TrueFunc,
  can_use = function(self, player, card, extra_data)
    if Util.CanUseToSelf(self, player, card, extra_data) then
      return player:getMark("@@cf_baofu-turn") == 0
    end
  end,
  on_effect = function(self, room, effect)
    local from = effect.from
    local to = effect.to
    if to.dead then return end
    room:changeMaxHp(to, 1)
    room:recover {
      who = to,
      num = 1,
      card = effect.card,
      recoverBy = effect.from,
      skillName = glittering_gemstones.name
    }
    room:addPlayerMark(to, "@@cf_baofu-turn")
  end
})

return glittering_gemstones
